<?php
    echo "<h2> Master Jobseeker </h2>";

    $category[1] = 'All';
    $category[2] = 'Haven\'t Activate';
    $category[3] = '> 6 months';
    $category[4] = 'Last Login > 6 moths';
    
    echo "<form id='filter'>";
        echo "<label id='left' style='text-align:right'>Category : &nbsp</label>"; 
        echo "<label id='center'>".$form->select('category',$category)."</label>";        
        echo "<br>";
        echo "<label id='left' style='text-align:right'>ID : &nbsp</label>"; 
        echo $form->input('id',array('label'=>false,'div'=>false,'onFocus'=>"document.getElementById('name').value='';"));        
        echo " &nbsp Name : "; 
        echo $form->input('name',array('label'=>false,'div'=>false,'onFocus'=>"document.getElementById('id').value='';"));        
    echo "</form>";
    
    echo $ajax->observeForm('filter',
                            array('url'=>array('controller'=>'jobseekers','action'=>'filter_admin'),
                            'update'=>'result','frequency' => 0.2)
                            );
    echo "<br>";
    echo "<div id='result'></div>";          
?>